import { DashboardIcon } from 'tdesign-icons-vue-next';
import { shallowRef } from 'vue';

import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/',
    component: Layout, // 布局组件
    redirect: '/home',
    meta: {
      title: {
        zh_CN: '仪表盘',
        en_US: 'Home',
      },
      icon: shallowRef(DashboardIcon),
      orderNo: 0,
    },
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/pages/home/index.vue'), // 页面组件
        meta: {
          title: {
            zh_CN: '统计报表',
            en_US: 'Home',
          },
          icon: '',
        },
      },
    ],
  },
];
